package com.atguigu.spring5;

public class Book {
    //1创建属性
    private  String bname;
    private String bauthor;

    //2创建属性对应的set方法
    public void setBname(String bname) {

        this.bname = bname;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    //3添加一个普通方法
    public void testDemo(){
        System.out.println(bname+"->"+bauthor);
    }
    //psvm快捷输出main方法
    public static void main(String[] args) {
        Book book = new Book();
        book.setBname("abc");
    }



}
